<template>
<div class="app-main">
  <div class="divHead">
<el-row :gutter="20">
  <el-col :span="6">
    <div class="grid-content bg-purple">仓库编号</div>
    <div class="el-input el-input--medium">
    <el-input v-model="form.num" placeholder="请输入内容" autocomplete="off"></el-input>
    </div>
  </el-col>
  <el-col :span="6">
    <div class="grid-content bg-purple">仓库名称</div>
      <div class="el-input el-input--medium">
    <el-input v-model="form.name" placeholder="请输入内容" autocomplete="off"></el-input>
    </div>
  </el-col>
  <el-col :span="6">
    <div class="grid-content bg-purple">仓库状态</div>
    <div></div>
      <el-select v-model="form.state" placeholder="请选择" class="el-input el-input--medium el-input--suffix">
    <el-option
      v-for="item in options"
      :key="item.value"
      :label="item.label"
      :value="item.value">
    </el-option>
  </el-select>
    </el-col>
    <div class="divButton">
  <button class="minorImportantButton btnSearch">搜索</button>
  <button class="unimportanceButton">重置</button>
</div>
</el-row>
  </div>
  <div class="divContent">
  <button class="importantButton btnAdd">新增仓库</button>
</div>
</div>
</template>

<script>
export default {
  data () {
    return {
      form: {
        num: '',
        name: '',
        state: ''
      },
      options: [{
        value: '选项1',
        label: '黄金糕'
      }, {
        value: '选项2',
        label: '双皮奶'
      }
      ]
    }
  }
}
</script>

<style lang="less" scoped>
// /deep/ .el-row{
//   width: 800px;
// }
.app-main{
    min-height: calc(100vh - 50px);
    background-color: #fdfafa;
    width: 100%;
    position: relative;
    overflow: hidden;
}
.divContent {
  margin-top: 15px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 0 6px 0 rgb(144 142 142 / 17%);
}
 .divContent .btnAdd{
    margin-left: 30px;
    margin-top: 20px;
    margin-bottom: 20px;
}
.importantButton {
    background: #00be76;
    color: #fff;
        height: 40px;
    border-radius: 20px;
    border: 0;
    font-size: 14px;
    font-family: PingFangSC,PingFangSC-Medium;
    font-weight: 500;
    text-align: center;
    line-height: 40px;
    padding-left: 26px;
    padding-right: 26px;
    cursor: pointer;
    outline: 0;
}
.divHead{
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 0 6px 0 rgb(144 142 142 / 17%);
    padding: 30px;

}
/deep/.grid-content {
  margin-bottom: 10px;
    height: 18px;
    font-size: 12px;
    color: #887e7e;
    font-size: 12px;
    font-family: PingFangSC,PingFangSC-Medium;
    font-weight: 500;
}
/deep/.el-input--medium .el-input__inner {
    height: 40px;
    line-height: 40px;
    border: 1px solid #f8f5f5;
    background: #f8f5f5;
    border-radius: 6px;

}

/deep/.el-input__inner {
    padding-left: 12px;
    padding-right: 12px;
    box-sizing: border-box;
    color: #1f2d3d;
    display: inline-block;
    font-size: inherit;
    outline: none;
    padding: 0 15px;
    transition: border-color .2s cubic-bezier(.645,.045,.355,1);
    width: 100%;
}

.divButton {
    float: right
}
.divButton .btnSearch{
  margin-right: 20px;
  margin-top: 25px;
}
.minorImportantButton {
    background: #ffb200;
    color: #332929;
    height: 40px;
    border-radius: 20px;
    border: 0;
    font-size: 14px;
    font-family: PingFangSC,PingFangSC-Medium;
    font-weight: 500;
    text-align: center;
    line-height: 40px;
    padding-left: 26px;
    padding-right: 26px;
    cursor: pointer;
    outline: 0;
}
.unimportanceButton{
    background: #f8f5f5;
    color: #332929;
}
.unimportanceButton {
    height: 40px;
    border-radius: 20px;
    border: 0;
    font-size: 14px;
    font-family: PingFangSC,PingFangSC-Medium;
    font-weight: 500;
    text-align: center;
    line-height: 40px;
    padding-left: 26px;
    padding-right: 26px;
    cursor: pointer;
    outline: 0;
}
</style>
